# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  def compress(string)
     string = string.gsub(/ /, '|')
     string = string.gsub(/\//, 'forwardslash')
     string = string.gsub(/\./, 'dot')
     string = string.gsub(/,/, 'comma')

     return string
   end

   def expand(string)
     string = string.gsub(/\|/, ' ')
     string = string.gsub(/forwardslash/, '/')
     string = string.gsub(/dot/, '.')
     string = string.gsub(/comma/, ',')

     return string
   end
end
